//
//  LYChatSystemEdgeLabel.swift
//  WeChat
//
//  Created by mac on 2018/8/27.
//  Copyright © 2018年 RRC. All rights reserved.
//

import UIKit

class LYChatSystemEdgeLabel: UILabel {

    var labelEdge: UIEdgeInsets = UIEdgeInsetsMake(0, 7, 0, 7)
    
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    
    override func drawText(in rect: CGRect) {
        super.drawText(in: UIEdgeInsetsInsetRect(rect, labelEdge))
    }

}
